package com.myhexin;

import com.myhexin.alert.annotation.EnableAlert;
import com.myhexin.alert.service.AlertSender;
import com.myhexin.alert.service.impl.VanishAlertSenderImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author Jayce
 * @version 1.0.0
 * @date 2021/10/7
 * @desc
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class, args);
        AlertSender alertSender = applicationContext.getBean(VanishAlertSenderImpl.class);
        alertSender.send();
    }
}
